package com.bwie.service.imp;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.mapper.DriverMapper;
import com.bwie.pojo.Driver;
import com.bwie.service.DriverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DriverServiceImpl extends ServiceImpl<DriverMapper, Driver> implements DriverService {

    @Autowired
    private DriverMapper driverMapper;

    @Override
    public List<Driver> driverList() {
        return driverMapper.driverList();
    }

    @Override
    public void updateStatus(Driver driver) {
        driverMapper.updateStatus(driver);
    }
}
